package com.obrempon.credit.market.httptest.api;

import androidx.annotation.NonNull;

import com.obrempon.module.easyhttp.annotation.HttpRename;
import com.obrempon.module.easyhttp.config.IRequestApi;
import com.obrempon.module.easyhttp.config.IRequestBodyStrategy;
import com.obrempon.module.easyhttp.config.IRequestInterceptor;
import com.obrempon.module.easyhttp.config.IRequestServer;
import com.obrempon.module.easyhttp.model.RequestBodyType;

/**
 *    author : Android 轮子哥
 *    github : https://github.com/getActivity/EasyHttp
 *    time   : 2019/06/07
 *    desc   : 搜索文章
 */
public final class SearchBlogsApi implements IRequestApi, IRequestServer, IRequestInterceptor {

    @NonNull
    @Override
    public String getApi() {
        return "invitation/get_invitation";
    }

    @HttpRename("uid")
    private String uid = "-1";

    @HttpRename("category_id")
    private String category_id = "-2";

    @HttpRename("page")
    private String page = "1";

    @HttpRename("token")
    private String token = "";

    @NonNull
    @Override
    public String getHost() {
        return "http://www.meiheshangcheng.cn/app/";
    }

    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.FORM;
    }
}